package com.fanxl.storm.sum;

import org.apache.storm.spout.SpoutOutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.topology.base.BaseRichSpout;

import java.util.Map;

/**
 * @description 使用storm实现累计求和
 * @author: fanxl
 * @date: 2021/12/15 0015 22:43
 */
public class LocalSumStormTopology {

    public static class DataSourceSpout extends BaseRichSpout {

        @Override
        public void open(Map map, TopologyContext topologyContext, SpoutOutputCollector spoutOutputCollector) {

        }

        @Override
        public void nextTuple() {

        }

        @Override
        public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {

        }
    }
}
